package com.techfengs.chapter04;

public class InverseOperator {
  public static void main(String[] args) {
    // 取反!：如条件成立，结果为false；否则，结果为true
    System.out.println(60 > 20);
    System.out.println(!(60 > 20));

    // 逻辑异或^：当条件1和条件2结果不同时，结果为true，否则，结果为false
    boolean b = (10>1) ^ (3<5);
    System.out.println("b="+b);

    b = (10>1) ^ (3>5);
    System.out.println("b="+b);
  }
}
